package com.hao.crm.mapper;

import java.util.List;

import com.hao.crm.domain.Permission;
import com.hao.crm.query.QueryObject;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);
    
    List<Permission> queryByCondition(QueryObject qo);

	Long queryByConditionCount(QueryObject qo);

	List<Permission> selectByRid(Long rid);

	Permission selectByResource(String function);

	List<Permission> selectByEid(Long id);
}